import request from '@/utils/request'

// 获取地区信息
export function apiCommonDistrict(data) {
    return request({
        method: 'post',
        url: '/common/district',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 入驻审核分页查询
export function apiAuditPage(data) {
    return request({
        method: 'post',
        url: '/operation/audit/page',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 入驻待审核总数
export function apiAuditWaitAuditCount(data) {
    return request({
        method: 'post',
        url: '/operation/audit/waitAuditCount',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 审核详情
export function apiAuditDetail(data) {
    
    return request({
        method: 'post',
        url: `/operation/audit/detail`,
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}   

// 审核通过/拒绝
export function apiAuditResult(data) {
    return request({
        method: 'post',
        url: `/operation/audit/result`,
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}   
// 师傅分页查询
export function apiOperationWorkerPage(data) {
    return request({
        method: 'post',
        url: '/operation/worker/page',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 后台-可接单的师傅列表
export function apiWorkerCanReceiveList(data) {
    return request({
        method: 'post',
        url: '/worker/canReceive/list',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 师傅详情
export function apiWorkerDetail(data) {
    return request({
        method: 'post',
        url: '/operation/worker/detail',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 新建师傅
export function apiWorkerCreate(data) {
    return request({
        method: 'post',
        url: '/operation/worker/create',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 修改师傅手机号
export function apiWorkerUpdateMobile(data) {
    return request({
        method: 'post',
        url: '/operation/worker/updateMobile',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 修改师傅服务类目和报价
export function apiWorkerUpdateCategory(data) {
    return request({
        method: 'post',
        url: '/operation/worker/updateCategory',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 修改门店和区域信息
export function apiWorkerUpdateStoreAndArea(data) {
    return request({
        method: 'post',
        url: '/operation/worker/updateStoreAndArea',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 修改资料档案
export function apiWorkerUpdateInformation(data) {
    return request({
        method: 'post',
        url: '/operation/worker/updateInformation',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 添加标签
export function apiWorkerInsertLabel(data) {
    return request({
        method: 'post',
        url: '/operation/worker/insertLabel',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 删除标签
export function apiWorkerDeleteLabel(data) {
    return request({
        method: 'post',
        url: '/operation/worker/deleteLabel',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}